import java.util.Scanner;

public class Ex4_41{
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		System.out.print("Enter numbers: ");
		int max = 0, count = 0;
		int t = input.nextInt();
		while (t != 0){
			if (t > max){
				max = t;
				count = 1;
			}
			else if (t == max){
				count++;
			}
			t = input.nextInt();
		}
		if (max == 0)
			System.out.println("No input.");
		else{
			System.out.printf("The largest number is %d\n", max);
			System.out.printf("The occurrence count of the largest number is %d\n", count);
		}
	}
}